<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin think\Model
 */
class Month extends Model
{
    protected $table = "goods";
    public function sel(){
        return self::paginate(8);
    }
    public function del($id){
        return self::where($id)->delete();
    }
    public function upd($where,$data){
        return self::where($where)->update($data);
    }
    public function add($data){
        return self::insert($data);
    }
}
